home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / gopherd / Makefile < prev    next >
Encoding:
Makefile  |  1993-03-26  |  3.6 KB  |  140 lines

  1. #********************************************************************
  2. # lindner
  3. # 3.3
  4. # 1993/03/26 19:45:38
  5. # /home/mudhoney/GopherSrc/CVS/gopher+/gopherd/Makefile,v
  6. # Exp
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for gopher server
  15. #*********************************************************************
  16. # Revision History:
  17. # Makefile,v
  18. # Revision 3.3  1993/03/26  19:45:38  lindner
  19. # Fix for parameters to makegopherindex script
  20. #
  21. # Revision 3.2  1993/03/24  20:17:00  lindner
  22. # Additions for gopherindex
  23. #
  24. # Revision 3.1.1.1  1993/02/11  18:02:50  lindner
  25. # Gopher+1.2beta release
  26. #
  27. # Revision 1.5  1993/02/09  21:35:55  lindner
  28. # Fixed install target, save old gopherd.conf file
  29. #
  30. # Revision 1.4  1992/12/29  23:28:31  lindner
  31. # Added mindexd.o to OBJS for fan-out integration.
  32. #
  33. # Revision 1.3  1992/12/21  20:44:37  lindner
  34. # Added kernutils.o to OBJS (from mtm)
  35. #
  36. # Revision 1.2  1992/12/21  20:21:49  lindner
  37. # Added ../bin/libftw.a to WAISGATEOBJS..
  38. #
  39. # Revision 1.1  1992/12/10  23:15:15  lindner
  40. # gopher 1.1 release
  41. #
  42. #
  43. #********************************************************************/
  44. include ../Makefile.config
  45.  
  46. #
  47. # Type of full-text searching to use....  WAIS
  48. # requires that you have a built wais distribution.
  49. #
  50. # Next requires that you have the NeXTtext.tar.Z libraries.
  51. #
  52.  
  53. LIBS    = $(SERVERLIBS)
  54.  
  55. NEXTLIBS    = -ltext -lbtree
  56.  
  57.  
  58. #############################################################################
  59.  
  60. NEXTOBJ = NeXTindex.o
  61.  
  62. WAISGATEOBJ = ../ui/source.o ../bin/libftw.a
  63.  
  64. # Order changed, or won't work on SCO3.2.4 
  65. WAISOBJ = ../bin/inv.a  ../bin/client.a ../bin/wais.a $(WAISGATEOBJ)
  66.  
  67. CCFLAGS    = $(OPT) -DDATA_DIRECTORY=\"$(SERVERDATA)\" \
  68.     -DDOMAIN_NAME=\"$(DOMAIN)\" \
  69.     -DGOPHER_PORT=$(SERVERPORT) \
  70.     $(SEARCH) \
  71.     $(SERVEROPTS) \
  72.     $(GSYSTYPE) \
  73.     $(INCLUDES)
  74.  
  75. OBJS    = error.o globals.o gopherd.o daemon.o special.o \
  76.     dedot.o openers.o index.o Waisindex.o serverutil.o ftp.o \
  77.     waisgopher.o ext.o site.o gopherdconf.o kernutils.o mindexd.o \
  78.     authenticate.o tix.o command.o
  79.  
  80. TARGET    = gopherd
  81.  
  82. all:
  83.     (cd ..; $(MAKE) $(MFLAGS) server)
  84.  
  85. #
  86. # Special rule for NeXT text indexing.
  87. #
  88. NeXTindex.o : NeXTindex.c
  89.     $(CC) $(CCFLAGS) -ObjC -I. -c NeXTindex.c
  90.  
  91.  
  92. #
  93. # Special rule for wais gateway
  94. #
  95. waisgopher.o: waisgopher.c
  96.     $(CC) $(CCFLAGS) -c waisgopher.c
  97.  
  98. gopherd.o: gopherd.c
  99.     $(CC) $(CCFLAGS) -DCONF_FILE=\"$(SERVERDIR)/gopherd.conf\" -c gopherd.c
  100.  
  101.  
  102. .c.o:
  103.     $(CC) $(CCFLAGS) -c $<
  104.  
  105. globals.o : globals.h
  106.  
  107. $(OBJS) : ../conf.h
  108.  
  109.  
  110. next: $(OBJS) $(NEXTOBJ)
  111.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(DLOBJS) \
  112.         $(LIBS) $(NEXTLIBS)
  113.     ./makegopherindex next $(SERVERDATA)
  114.  
  115. wais: $(OBJS)
  116.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(WAISOBJ) $(DLOBJS) $(LIBS)
  117.     ./makegopherindex wais $(SERVERDATA)
  118.  
  119. nextwais: $(OBJS) $(NEXTOBJ)
  120.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) \
  121.         $(WAISOBJ) $(DLOBJS) $(NEXTLIBS)
  122.     ./makegopherindex next $(SERVERDATA)
  123.  
  124. none: $(OBJS)
  125.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(DLOBJS) $(LIBS)
  126.  
  127. install : all
  128.     -mv $(SERVERDIR)/$(TARGET) $(SERVERDIR)/$(TARGET).old
  129.     -mv $(SERVERDIR)/gopherd.conf $(SERVERDIR)/gopherd.conf.old
  130.     $(INSTALL)  $(TARGET) $(SERVERDIR)
  131.     $(INSTALL)  gopherd.conf $(SERVERDIR)
  132.     $(INSTALL)  gopherindex $(SERVERDIR)
  133.     -rm    $(SERVERDIR)/gopherls $(SERVERDIR)/gindexd
  134.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gopherls
  135.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gindexd
  136.     
  137. clean:
  138.     -rm -f $(TARGET) $(OBJS) $(NEXTOBJ) *.out *~ core gopherindex
  139.  
  140.